﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using CodeBuilder2.DBM;
using CodeBuilder2.Model;

namespace CodeBuilder2.DAL.Schema
{
    class DataBaseDAL
    {
        internal DataTable GetTables(TargetServer ts, string databaseName)
        {
            DataTable dt = null;
            using (SqlConnection conn=DBManager.SqlConn)
            {
                conn.Open();
                conn.ChangeDatabase(databaseName);
                dt = conn.GetSchema("tables");
            }
            return dt;
        }
    }
}
